﻿CREATE FUNCTION [sp_ssiscatalog].[collect_usage_stats_is_enabled]
(
)
RETURNS INT
AS
BEGIN
	RETURN (	SELECT	CONVERT(BIT,MAX(CONVERT(TINYINT,[collect_usage_stats]))) 
				FROM	[sp_ssiscatalog].[configuration]
			)
END
